package com.zrwl.poscloud.base.constants;

/**
 * @author liuxiaolong
 * @date 2022/7/23
 * @description
 */
public class LeaseContractConstants {
    /***
     * status 状态(1:未签约,2:已签约,3:已审核,4:已作废,5:退租中,6:已退租)
     */
    public static final int deleted = 0;
    public static final int not_signing = 1;//未签约
    public static final int signing = 2;//已签约
    public static final int checked = 3;//已审核
    public static final int have_been_voided = 4;//已作废
    public static final int abandoning_lease = 5;//退租中
    public static final int renounced_lease = 6;//已退租
    public static final int renounced_audit = 7;//审核中
    public static final int renounced_relet = 8;//已续租
    /**
     * refund_status 退款状态(1:退款中,2:退款成功,3:退款失败)
     */
    public static final int under_refund = 1;//退款中
    public static final int success_refund = 2;//退款成功
    public static final int failure_refund = 3;//退款失败
    public static final int stay_refund = 4;//待退款
    /***
     * leaseType 租赁类型
     */
    public static final int leaseType_new_hire = 1;//新租
    public static final int leaseType_old_hire = 2;//续租



    /**
     * batchType_type 消费账单类型
     */
    public static final int batchType_real_estate = 1;//物业费
    public static final int batchType_rent = 2;//租金
    public static final int batchType_water = 3;//水费
    public static final int batchType_energy_charge = 4;//电费
    public static final int batchType_cash = 5;//押金
    public static final int batchType_scan_qr_code = 6;//扫码消费
    /**
     * return_method 退款方式
     */
    public static final int method_cash = 0;//现金退租
    public static final int method_return_328 = 1;//退回328
    public static final int method_return_wx = 2;//退回微信
    /**
     * cash_status 提现状态
     */
    public static final int cash_stay = 1;//待提现
    public static final int cash_centre = 2;//提现中
    public static final int cash_succeed = 3;//提现成功
    public static final int cash_error = 4;//提现失败
    public static final int cash_no = 0;//不提现

    public static String getBatchTypeName(int type) {
        switch (type) {
            case batchType_real_estate:
                return "物业费";
            case batchType_rent:
                return "租金";
            case batchType_water:
                return "水费";
            case batchType_energy_charge:
                return "电费";
            case batchType_cash:
                return "押金";
            case batchType_scan_qr_code:
                return "扫码消费";
            default:
                return "其他";
        }
    }
    public static String getReturnModeName(int type) {
        switch (type) {
            case method_cash:
                return "现金退租";
            case method_return_328:
                return "退回328";
            case method_return_wx:
                return "退回微信";
            default:
                return "其他";
        }
    }
    public static String getLeaseTypeName(int type) {
        switch (type) {
            case leaseType_new_hire:
                return "新租";
            case leaseType_old_hire:
                return "续租";
            default:
                return "其他";
        }
    }

}
